<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="com.beanutil.examples.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>elExample5 page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <jsp:useBean id="user" class="com.beanutil.examples.User"></jsp:useBean>
  <jsp:setProperty name="user" property="username" value="jqb"></jsp:setProperty>
  <%
  	Profile p= new Profile();
  	p.setEmail("daohaogun_01@163.com");
  	
  	Map<String,String> phone=new HashMap<String, String>();
  	phone.put("office","12313");
  	p.setPhone(phone);
  	
  	Address address=new Address();
  	address.setCity("上海");
  	Address[] addresses={address};
  	p.setAddress(addresses);
  	user.setProfile(p);
  %>
  	\${user.username }=${user.username } <br>
  	\${user['username'] }=${user['username'] } <br>
  	\${user["username"] }=${user["username"] } <br>
    --------------------<br>
    \${user.profile.phone.office }=${user.profile.phone.office } <br>
    --------------------<br>
    \${user.profile.address[0].city }=${user.profile.address[0].city } <br>
    --------------------<br>
    
  </body>
</html>
